
import request from "./request"
//首页数据的请求

export const GetHomeDataList = () => request.get("/index/index")
//搜索页面
export const GetSearchPopupTop = () => request.get("/search/index")

// 带参数的get请求的写法
export const GetSearchTipListData = (params) => request.get("/search/helper", { params })

//带参数的POST
// export const GetSearchTipListData = (params) => request.post("/search/helper", params)

//清楚历史记录的请求
export const clearHisttotySearch = () => request.post("/search/clearhistory")

//登录页面发送请求post

export const GetUserIndexData = (params) => request.post("/auth/loginByWeb", params)

//请求搜索商品的get请求
export const GetGoodListData = (params) => request.get("/goods/list", { params })

export const GetSpecial = (params) => request.get("/topic/list", { params })

export const GetClassification = () => request.get("/catalog/index")

//请求商品详情数据
export const GetProductDetailData = (params) => request.get("/goods/detail", { params })

//请求商品相关产品信息
export const GetProductShop = (params) => request.get("/goods/related", { params })
